import React from 'react';
import { Routes, Route } from 'react-router-dom';

import MarketDetails from './component/MarketDetails';
import MaretList from './component/MaretList';

const Market = () => {

  return (
    <Routes>
      <Route path=":id" element={<MarketDetails />} />
      <Route path="*" element={<MaretList />} />
    </Routes>
  )
};

export default Market;